/**
 * 受试者状态  0 待筛选  1 筛选中 2
1：带筛选状态
2：筛选中
3：筛选失败
4：随机
5：治疗中
6：退出
7：治疗结束
8：安全性随访
9：生存随访
 */
export const PTS_STATUS = {
  DAISHAIXUAN: {
    value: 1,
    desc: '待筛选状态'
  },
  SHAIXUANZHONG: {
    value: 2,
    desc: '筛选中'
  },
  SHAIXUANSHIBAI: {
    value: 3,
    desc: '筛选失败'
  },
  SUIJI: {
    value: 4,
    desc: '随机'
  },
  ZHILIAOZHONG: {
    value: 5,
    desc: '治疗中'
  },
  TUICHU: {
    value: 6,
    desc: '退出'
  },
  ZHILIAOJIESHU: {
    value: 7,
    desc: '治疗结束'
  },
  ANQUANXINGSUIFANG: {
    value: 8,
    desc: '安全性随访'
  },
  SHENGCUNSUIFANG: {
    value: 9,
    desc: '生存随访'
  }
}
// 邀请状态（团队成员）
export const INVITATION_STATUS = {
  INVITED: {
    value: 1,
    desc: '已邀请'
  },
  JOINED: {
    value: 2,
    desc: '已加入'
  }
}
// 研究中心状态
export const RESEARCH_CENTER_STATUS = {
  ACTIVE: {
    value: 1,
    desc: '活跃'
  },
  INACTIVE: {
    value: 2,
    desc: '非活跃'
  }
}
// 研究中心邀请成员状态
export const CENTER_MEMBER_STATUS = {
  SUBJECT: {
    value: 1,
    desc: '接受'
  },
  REJECT: {
    value: 2,
    desc: '拒绝'
  },
  WAITING: {
    value: 3,
    desc: '待处理'
  },
  JOIN: {
    value: 4,
    desc: '待加入'
  }
}
// 签署状态
export const SIGNING_STATUS = {
  NO_SIGNING: {
    value: 1,
    desc: '待签署'
  },
  NO_UPLOAD: {
    value: 2,
    desc: '待上传'
  },
  SIGNING: {
    value: 3,
    desc: '已签署'
  },
  UPLOAD: {
    value: 4,
    desc: '已上传'
  }
}
// 研究分期
export const SPONSOR_STAGE = {
	FIRST_STAGE: {
		value: 1,
		desc: 'I期'
	},
	SECOND_STAGE: {
		value: 2,
		desc: 'II期'
	},
	THIRD: {
		value: 3,
		desc: 'III期'
	},
	FOURTH_STAGE: {
		value: 4,
		desc: 'IV期'
	},
	OTHERS: {
		value: 5,
		desc: '其他'
	},
	BE: {
		value: 6,
		desc: 'BE'
	}
}
export const SIGN_TYPES = {
  ACTIVE: {
    value: 1,
    desc: '单页签署'
  },
  INACTIVE: {
    value: 2,
    desc: '骑缝签署'
  }
}

export const TEXT_SIGN_TYPE = [
  { id: 'EP_SIGN_RSC_NAME', name: '签署-研究者-姓名' },
  { id: 'EP_SIGN_RSC_ID_CARD', name: '签署-研究者-身份证号' },
  { id: 'EP_SIGN_RSC_PHONE', name: '签署-研究者-手机号' },
  { id: 'EP_RSC_HOSPITAL_NAME', name: '研究者-所属医院名称' },
  { id: 'EP_RSC_HOSPITAL_DEPT', name: '研究者-所属医院科室(多个逗号分隔)' },
  { id: 'EP_PROJECT_SPONSOR', name: '项目-申办方(多个逗号分隔)' },
  { id: 'EP_PROJECT_NAME', name: '项目-名称' },
  { id: 'EP_PROJECT_NO', name: '项目-编号' },
  { id: 'EP_PROJECT_PROTOCOL_NO', name: '项目-PROTOCOL号' },
  { id: 'INPUT_TEXT', name: '自定义文本' }
]

export default {
  PTS_STATUS,
  SIGNING_STATUS,
  SPONSOR_STAGE,
  INVITATION_STATUS,
  RESEARCH_CENTER_STATUS,
  CENTER_MEMBER_STATUS,
  SIGN_TYPES,
  TEXT_SIGN_TYPE
}
